package Homework.Homework03;

/*
  手机卡类
 */
public class SIMCard {
    private String cardType;        // 卡类型
    private int cardNumber;      //  卡号
    private String userName;            //  用户名
    private String passWord;        //  密码
    private int accountBalance;  //  账户余额
    private int talkTime;        //  通话时长（分钟）
    private int internetData;    //  上网流量（GB）

    public SIMCard() {
    }

    public SIMCard(String cardType, int cardNumber, String userName, String passWord, int accountBalance, int talkTime, int internetData) {
        setCardType(cardType);
        setCardNumber(cardNumber);
        setUserName(userName);
        setPassWord(passWord);
        setAccountBalance(accountBalance);
        setTalkTime(talkTime);
        setInternetData(internetData);
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public int getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(int cardNumber) {
       this.cardNumber = cardNumber;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {

        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {

        this.passWord = passWord;
    }

    public int getAccountBalance() {
        return accountBalance;
    }

    public void setAccountBalance(int accountBalance) {
        this.accountBalance = accountBalance;
    }

    public int getTalkTime() {
        return talkTime;
    }

    public void setTalkTime(int talkTime) {
        this.talkTime = talkTime;
    }

    public int getInternetData() {
        return internetData;
    }

    public void setInternetData(int internetData) {
        this.internetData = internetData;
    }

    public void show(){
        System.out.println("卡号：" + getCardNumber() + "  用户名：" + getUserName() + "  当前余额：" + getAccountBalance());
    }
}